//
//  BidBaseViewController.swift
//  ezyform
//
//  Created by MoennigQ on 3/4/20.
//  Copyright © 2020 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit

class BidBaseViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        //back
        if self.navigationController != nil {
            if self.navigationController!.viewControllers.count > 1 {
                let btn = UIButton(type: .custom)
                btn.frame = CGRect(x: 0, y: 0, width: 25, height: 30)
                btn.setImage(UIImage(named: "service_navigationbar_back_icon"), for: .normal)
                btn.addTarget(self, action: #selector(backToPre), for: .touchUpInside)
                let item = UIBarButtonItem(customView: btn)
                self.navigationItem.setLeftBarButtonItems([item], animated: true)
            }
        }
    }
    //
    override var preferredStatusBarStyle: UIStatusBarStyle{
        if #available(iOS 13.0, *) {
            return .darkContent
        } else {
            return .default
        }
    }
}
